
/*

Design Pattern Automation Toolkit.
Application to create applications with emphasis on Design patterns.
And support for round trip engineering.
Copyright (C) 2004 Vineeth Neelakant. nvineeth@gmail.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
using System;using BusinessLayer;using InfoClasses;using dpatoolkit.UILayer;
using System.Collections;
using DesignPatternDefinitions;

namespace InfoClasses
{
	/// <summary>
	/// Concrete Implementation of IMethod
	/// </summary>
	internal class MethodInfo : IMethod
	{
		internal MethodInfo()
		{
			// 
			// TODO: Add constructor logic here
			//
		}
		#region IMethod Members

		string retType;
		public string MethodReturnType
		{
			get
			{
				return this.retType;
			}
			set
			{
				this.retType = (string) value;
			}
		}

		MethodType mtype;
		public DesignPatternDefinitions.MethodType MethodType
		{
			get
			{
				return this.mtype;
			}
			set
			{
				this.mtype = (MethodType) value;
			}
		}

                string msummary;
		public string MethodSummary
		{
			get
			{
				return msummary;
			}
			set
			{
				this.msummary= (string) value;
			}
		}

		string mvis;
		public string MethodVisibility
		{
			get
			{
				return mvis;
			}
			set
			{
				this.mvis=(string)value;
			}
		}

		string mname;
		public string MethodName
		{
			get
			{
				return mname;
			}
			set
			{
				this.mname=(string)value;
			}
		}

		string minfo;
		public string GetMetaInfo(string language)
		{
			return minfo;
		}

		public void SetMetaInfo(string meta)
		{
			this.minfo=meta;
		}

		public string UMLRepresentation
		{
			get
			{
				return "";
			}
		}

		public System.Collections.ArrayList Parameters
		{
			get
			{
				// TODO:  Add MethodInfo.Parameters getter implementation
				return null;
			}
			set
			{
				// TODO:  Add MethodInfo.Parameters setter implementation
			}
		}

		public object MethodUID
		{
			get
			{
				// TODO:  Add MethodInfo.MethodUID getter implementation
				return null;
			}
		}
		public Hashtable GetAllMetaInfo()
		{
			//not required not used
			return null;
		}

		#endregion
	}
}
